﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Dln.Common;
using Dln.Common.Helper;
using Dln.Model;


public partial class Page_日常工作_WeChatSubscribe : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        var positionModel = SqlHelper.Context.From<PositionTypes>().Select(d => new { d.Id, d.TypeName }).ToList();
        //positionModel.AddRange(dt_type_list);
        if (positionModel != null && positionModel.Count() > 0)
        {
            selectProductCategory.DataSource = positionModel;
            selectProductCategory.DataTextField = "TypeName";
            selectProductCategory.DataValueField = "Id";
            selectProductCategory.DataBind();
            selectProductCategory.Items.Insert(0, new ListItem() { Text = "请选择", Value = "" });
        }

       
    }
}